# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pep8-naming
pkgver=0.13.0
pkgrel=0
pkgdesc="Check PEP-8 naming conventions plugin for flake8"
url="https://github.com/flintwork/pep8-naming"
arch="noarch"
license="MIT"
depends="python3 py3-flake8"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pep8-naming/pep8-naming-$pkgver.tar.gz"
builddir="$srcdir/pep8-naming-$pkgver"

replaces="py-pep8-naming" # Backwards compatibility
provides="py-pep8-naming=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
6c20def23ffca9bd4b6b6fd9fcce6416691b061b175866c1d29a9e28e1afd15d73fe60e2f128d80d3f6278448ac9278653acb4db19c35a69d6e89b70a9538e05  pep8-naming-0.13.0.tar.gz
"
